<template>
    <h3>学生信息列表</h3>
    <MyTable :theadList='studentsDataHeader' :renderData='studentsData'>
        <template #operate="{ item }">
            <td>
                <button @click="$emit('onDeleteStudent', item.id)">删除</button>
                <button @click="$emit('getUpdateStudentInfo',item)">修改</button>
            </td>
        </template>
    </MyTable>
</template>

<script setup>


defineProps(['studentsData', 'studentsDataHeader']);
defineEmits(['onDeleteStudent','getUpdateStudentInfo']);


//

</script>

<style scoped></style>